package com.jycrm.dao.channel.impl;

import java.util.List;
import java.util.Map;

import com.jycrm.dao.channel.IChannelsSaleInfoDao;
import com.jycrm.dao.core.AbstractService;
import com.jycrm.domain.channel.CrmChannelsSaleinfo;

public class ChannelsSaleInfoDaoImpl extends AbstractService implements
		IChannelsSaleInfoDao {

	public void delChannelsSaleInfo(CrmChannelsSaleinfo cc) {
		persistenceManager.delete(cc);
	}

	public CrmChannelsSaleinfo getChannelsSaleInfoById(Long id) {
		return (CrmChannelsSaleinfo)queryManager.getObjectById(CrmChannelsSaleinfo.class,id);
	}

	public List getChannlesSaleInfoByChannnel(Map paramsMap) {
		return sqlMapManager.queryForList("getChannlesSaleInfoByChannnel",paramsMap);
	}

	public void saveChannelsSaleInfo(CrmChannelsSaleinfo cc) {
		persistenceManager.create(cc);
	}

	public void updateChannelsSaleInfo(CrmChannelsSaleinfo cc) {
		persistenceManager.update(cc);		
	}

	public List getAssetInfoList(Map paramsMap) {
		return sqlMapManager.queryForList("getAssetInfoList",paramsMap);
	}

	public List getSellInfoList(Map paramMap) {
		return sqlMapManager.queryForList("getSellInfoList",paramMap);
	}
	
	

}
